package com.iphanta.community.common.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/11/22 7:23 PM
 */
@Data
public class DataResult<T> {

    private String requestId;

    /**
     * 代码
     */
    private String code;

    /**
     * 异常消息
     */
    private String message;

    private T data;

    public DataResult() {
    }

    public DataResult(String requestId, String code, String message) {
        this.requestId = requestId;
        this.code = code;
        this.message = message;
    }

    public DataResult(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
